package com.jack.database_exp.mapper;
import com.jack.database_exp.bean.Worker;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface WorkerMapper{
    @Select("select * from worker")
    public List<Worker> queryWorkers();
    @Select("select WNo from worker where WName = #{username}")
    public Integer queryWorkerByName(String username);
    @Select("select WName from worker where WNo = #{id}")
    public String queryWorkerById(Integer id);
}